CC=gcc
CFLAGS=-lrt -lpthread -Wall -DDEBUG
BINARY=rma
SYSTEM=POSIX

all: clean compile

compile:
	$(CC) $(CFLAGS) -D$(SYSTEM)=1 -o $(BINARY) hello.c ../../../src/po_hi_task.c ../../../src/po_hi_time.c ../../../src/po_hi_main.c generated/nodea/jobs.c generated/nodea/main.c -I../../../include/ -Igenerated/common/ -Igenerated/nodea/

clean:
	find . -name '*.o' | xargs rm -f
	find . -name '*~' | xargs rm -f
	rm -f $(BINARY)
